Skip to main content
Version: Nitrogen

πŸ”₯ Gas and Benchmarks

This section will list the gas costs for every operation based on its inputs. The gas prices are subject to change based on usage and performance.

tip

The current gas limit for a transaction is set to be 50 million

New for Fhenix Kimchi Testnet we changed the calculation of TX data, which previously was heavily discounted artificially. The new calculation should be similar to default EVM for most transactions.

The new formula offers a discount of 75% for any data over 64KB, with default EVM costs per byte otherwise (64 gas units per non-zero byte, or 4 gas for zero).

The gas costs for the FHE operations are as follows:

FHE.sol functioneuint8euint16euint32euint64euint128euint256ebooleaddress
add, sub50,00065,000120,000175,000290,000n/an/an/a
asEuint (inEuint)65,00065,00065,000300,000300,000300,000n/a300,000
asEuint (euint)75,00085,000105,000120,000140,000175,000n/a150,000
asEuint (uint)20,00020,00030,00035,00065,00070,000n/a70,000
sealOutput150,000150,000150,000150,000150,000150,000150,000150,000
decrypt25,000150,000150,000150,000150,000150,000150,000150,000
mul, square40,00070,000125,000280,000n/an/an/an/a
lt, lte, gt, gte40,00050,00075,000125,000190,000n/an/an/a
select55,00055,00085,000125,000225,000n/a35,000n/a
require150,000150,000150,000150,000150,000150,000150,000150,000
div, rem125,000335,0001,003,000n/an/an/an/an/a
and, or, xor40,00050,00070,000130,000200,000n/a35,000n/a
ne, eq40,00050,00065,000120,000180,000260,00035,000210,000
min, max45,00055,000100,000145,000250,000n/an/an/a
shl, shr, rol, ror65,00090,000130,000210,000355,000n/an/an/a
not42,00035,00049,00085,000120,000n/a28,000n/a